package lanqiao.dontaiguihua.meiju;

import java.util.HashSet;
import java.util.Set;
//直线
public class Lan1449 {
    public static void main(String[] args) {
        int x=20;
        int y=21;
        Set<String> set=new HashSet<>();
        for(int i=0;i<x;i++){
            for(int j=0;j<y;j++){
                for(int a=0;a<x;a++){
                    for(int b=0;b<y;b++){
                        set.add(fu(i,j,a,b));
                    }
                }
            }
        }
        System.out.println(set.size()-1);
    }

    private static String fu(int x1,int y1,int x2,int y2){
        if(x1==x2&&y1==y2){
            return "-";
        }
        else if(x1==x2){
            return "x="+x1;
        }
        else if(y1==y2){
            return "y="+y1;
        }

        double k=(y2-y1)*1.0/x2-x1;
        double b=((y2*x1-y1*x2)*1.0/(x2-x1));
        return "y="+k+"x="+b;
    }
}
